﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;

namespace EntityFrameworkCore.Model
{
   public class AuditLog: EntityBase
    {




        public Guid? UserId { get; set; }

        //[Required]
        //[Column(TypeName = "nchar(1000)")]
        public string ServiceName { get; set; }

        //[Required]
        //[Column(TypeName = "nchar(1000)")]
        public string MethodName { get; set; }

        //[Required]
        //[Column(TypeName = "nvarchar(1500)")]
        public string Parameters { get; set; }

        public DateTime? ExecutionTime { get; set; }

        public long? ExecutionDuration { get; set; }

        //[Column(TypeName = "nchar(15)")]
        public string ClientIPAddress { get; set; }

        //[Column(TypeName = "nvarchar(50)")]
        public string ClientName { get; set; }

        //[Column(TypeName = "nchar(1000)")]
        public string BrowserInfo { get; set; }

    }
}
